Skip to content

[Test] Add caching to flexible instance type retrieval to minimize the number of EC2 requests.#7402

Open
gmarciani wants to merge 6 commits into
aws:developfrom
gmarciani:wip/mgiacomo/3160/test-flex-cache-0520-1
Open

[Test] Add caching to flexible instance type retrieval to minimize the number of EC2 requests.#7402
gmarciani wants to merge 6 commits into
aws:developfrom
gmarciani:wip/mgiacomo/3160/test-flex-cache-0520-1

Conversation

@gmarciani
Copy link
Copy Markdown
Contributor

@gmarciani gmarciani commented May 20, 2026

Description of changes

Add caching to flexible instance type retrieval to minimize the number of EC2 requests.
We adopted the same chaching approach to a similar call in #7401

Tests

ONGOING 2 parallel executions of test_ebs_single will trigger just one request to retrieve the list of flexible instance types, while before this fix it used to trigger one.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@gmarciani gmarciani added skip-changelog-update Disables the check that enforces changelog updates in PRs 3.x Test labels May 20, 2026
@gmarciani gmarciani marked this pull request as ready for review May 21, 2026 07:09
@gmarciani gmarciani requested review from a team as code owners May 21, 2026 07:09
gmarciani added 4 commits May 21, 2026 09:13
…number of calls to retrieve similar instance types.
…e similar instance types, so that it can reuse cached value and reduce calls to EC2.
…to reuse the regional cached value to reduce the EC2 calls
@gmarciani gmarciani force-pushed the wip/mgiacomo/3160/test-flex-cache-0520-1 branch from 0270ae3 to 8eea674 Compare May 21, 2026 11:07
…nd used it to cache flexible instance types.
@gmarciani gmarciani force-pushed the wip/mgiacomo/3160/test-flex-cache-0520-1 branch from 529c845 to e18a361 Compare May 21, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.x skip-changelog-update Disables the check that enforces changelog updates in PRs Test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant